package org.hotelsystem.hoteladminsystem.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.hotelsystem.hoteladminsystem.Pojo.Room;

import java.util.List;

@Mapper
public interface RoomMapper {
    // 通过酒店ID获取房间列表
    @Select("SELECT * FROM room WHERE hotelid = #{hotelId}")
    List<Room> getRoomsByHotelId(int hotelId);
}
